package com.ququ.syb.entrance.po;

import com.ququ.syb.entrance.vo.SybResult;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Map;

/**
 * Created by Macro on 16/10/21.
 */
@Document(collection = "RequestResponseLog")
public class RequestResponseLog {
    @Id
    private String _id;

    private String time;

    private String responsetime;

    private Integer ttl;

    private String appcode;

    private String accountid;

    private String controller;

    private String requesturl;

    private String orderno;

    private String tradenum;

    private Map requestheader;

    private Map requestparam;

    private SybResult responseparam;

    public String get_id() {
        return _id;
    }

    public void set_id(String _id) {
        this._id = _id;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getAppcode() {
        return appcode;
    }

    public void setAppcode(String appcode) {
        this.appcode = appcode;
    }

    public String getAccountid() {
        return accountid;
    }

    public void setAccountid(String accountid) {
        this.accountid = accountid;
    }

    public String getController() {
        return controller;
    }

    public void setController(String controller) {
        this.controller = controller;
    }

    public String getRequesturl() {
        return requesturl;
    }

    public void setRequesturl(String requesturl) {
        this.requesturl = requesturl;
    }

    public String getOrderno() {
        return orderno;
    }

    public void setOrderno(String orderno) {
        this.orderno = orderno;
    }

    public String getTradenum() {
        return tradenum;
    }

    public void setTradenum(String tradenum) {
        this.tradenum = tradenum;
    }

    public Map getRequestheader() {
        return requestheader;
    }

    public void setRequestheader(Map requestheader) {
        this.requestheader = requestheader;
    }

    public Map getRequestparam() {
        return requestparam;
    }

    public void setRequestparam(Map requestparam) {
        this.requestparam = requestparam;
    }

    public SybResult getResponseparam() {
        return responseparam;
    }

    public void setResponseparam(SybResult responseparam) {
        this.responseparam = responseparam;
    }

    public String getResponsetime() {
        return responsetime;
    }

    public void setResponsetime(String responsetime) {
        this.responsetime = responsetime;
    }

    public Integer getTtl() {
        return ttl;
    }

    public void setTtl(Integer ttl) {
        this.ttl = ttl;
    }

    @Override
    public String toString() {
        return "RequestResponseLog{" +
                "_id='" + _id + '\'' +
                ", time='" + time + '\'' +
                ", responsetime='" + responsetime + '\'' +
                ", ttl=" + ttl +
                ", appcode='" + appcode + '\'' +
                ", accountid='" + accountid + '\'' +
                ", controller='" + controller + '\'' +
                ", requesturl='" + requesturl + '\'' +
                ", orderno='" + orderno + '\'' +
                ", tradenum='" + tradenum + '\'' +
                ", requestheader=" + requestheader +
                ", requestparam=" + requestparam +
                ", responseparam=" + responseparam +
                '}';
    }
}
